package com.baibang.baibang815.controller;


import com.baibang.baibang815.service.OrderService;
import com.baibang.baibang815.util.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/order")
@Api(tags = "订单管理")
public class OrderController {

    @Autowired
    private OrderService orderService;
    // 白帮 0815
    @GetMapping("/getOrderListAll")
    @ApiOperation(value = "获取订单列表")
    public AjaxResult getOrderListAll() {
        return AjaxResult.success(orderService.selectAll());
    }
    // 白帮 0815
}